package com.yuanfengPlus.inventory.controller;

import com.yuanfengPlus.inventory.entity.InventoryChange;
import com.yuanfengPlus.inventory.service.IInventoryChangeService;
import com.yuanfengPlus.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping(value = "/inventoryChange")
public class InventoryChangeController {
    @Autowired
    public IInventoryChangeService iics;

    @GetMapping("/queryInventoryChange")
    public Result<List<InventoryChange>> queryInventoryChange(@RequestBody Map<String, Object> params) {
        return iics.queryInventoryChangeService(params);
    }
}
